package com.wayin.lift.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wayin.lift.entity.PersonnelEntity;

import java.util.List;

/**
 * 人员表
 *
 * @author HYXK
 * @email null@qq.com
 * @date 2020-05-26 09:56:38
 */
public interface PersonnelService extends IService<PersonnelEntity> {

    List<PersonnelEntity> findAllPersonnel();

    PersonnelEntity findByOpenId(String openId);

    List<PersonnelEntity> findByNumber(String number);

    PersonnelEntity backLogin(String username, String password);

    boolean insert(PersonnelEntity personnel);

    boolean update(PersonnelEntity personnel);

    boolean updateByOpenId(PersonnelEntity personnel);
}

